package com.chancingpack.dal.dao.mybatis;

import com.chancingpack.dal.dao.WxForselectDao;
import com.chancingpack.dal.service.WxForselectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by lenovo on 2017/7/19.
 */
@Repository
public class WxForselectDaoImpl implements WxForselectDao {
    @Autowired private WxForselectMapper wxForselectMapper;

    public List<Map<String, Object>> selectMapPage(Integer pageSize,Integer pageStart) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("pageSize",pageSize);
        map.put("pageStart",pageStart);
        return wxForselectMapper.selectMapPage(map);
    }

    public List<Map<String, Object>> selectMapByCustId(String consiId) {
        return wxForselectMapper.selectMapByCustId(consiId);
    }

    public Map<String, Object> selectStateA(Integer detailId) {
        return wxForselectMapper.selectStateA(detailId);
    }

    public Map<String, Object> selectStateB(Integer detailId) {
        return wxForselectMapper.selectStateB(detailId);
    }
    public List<Map<String,Object>> selectStateC(Integer detailId) {
        return wxForselectMapper.selectStateC(detailId);
    }

    public List<Map<String,Object>> selectStateD(Integer detailId) {
        return wxForselectMapper.selectStateD(detailId);
    }

    public String selectMapByDetailId(int detailId) {
        return wxForselectMapper.selectMapByDetailId(detailId);
    }
}
